#include "coin.h"
#include <QDebug>


Coin::Coin(QString img)
{
    QPixmap pix;
    bool ret= pix.load(img);
    if(!ret){
        QString str=QString("图片加载失败，失败的路径为%1").arg(img);
        qDebug()<< str;
        return;

    }
    this->setFixedSize(pix.width(),pix.height());
    this->setStyleSheet("QPushButton{border:0px;}");
    this->setIcon(pix);
    this->setIconSize(QSize(pix.width(),pix.height()));
}
